package cloud.maque.sms.api.feign;

import cloud.maque.common.core.response.R;
import cloud.maque.sms.api.dto.SmsCodeDTO;
import cloud.maque.sms.api.dto.SmsDTO;
import cloud.maque.sms.api.dto.SmsResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "maque-sms", path = "/sms")
public interface SmsFeignClient {

    @PostMapping("/send")
    R<SmsResponse> sendSms(@RequestBody SmsDTO smsDTO);

    @PostMapping("/send-code")
    R<SmsResponse> sendCodeSms(@RequestBody SmsCodeDTO smsDTO);
}
